package com.ziyun.erp.modules.goodsCraftPrice.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.goodsCraftPrice.dto.GoodsTemplateOptionDto;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.goodsCraftPrice.entity.GoodsCraftPriceEntity;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

/**
 * 工艺价格表
 *
 * @author zh
 * @email 296588519@qq.com
 * @date 2018-09-10 10:43:12
 */
public interface GoodsCraftPriceService extends IService<GoodsCraftPriceEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(List<GoodsCraftPriceEntity> goodsCraftPriceList, String userId, Long sellerId);

    Map<String ,Object> getGoodsCraftPriceList(Long sellerId);

    List<GoodsCraftPriceEntity> getGoodsCraftOptionPriceList(Map<String,Object> parasMap);

    void deleteByAttributeId(Map<String, Object> parasMap);

    void deleteByIds(List<Integer> ids);

    Map<String,Object> getYinshuaGoodsCraftPriceList(Long sellerId);

    List<GoodsCraftPriceEntity> getQuoteGoodsCraftOptionPriceList(Map<String, Object> parasMap);

    void saveYinshua(@Valid List<GoodsCraftPriceEntity> craftPriceList, String userName, Long sellerId);

    void deleteQuoteByAttributeId(Map<String, Object> parasMap);

    void saveKuaiyin(@Valid List<GoodsCraftPriceEntity> craftPriceList, String userName, Long sellerId);

    Map<String,Object> getKuaiyinGoodsCraftPriceList(Long sellerId);

    List<GoodsCraftPriceEntity> getGoodsTemplateOptionList(GoodsTemplateOptionDto goodsTemplateOptionDto);

    Map<String,Object> getGoodsTemplateCraftPriceList(Long sellerId);

    Map<String,Object> getGoodsTemplateCraftPriceWindowList(Map<String, Object> params);
}

